#!/bin/sh
if [ $# -lt 2 ]
then
  echo "please input more then 2 (>=2) paramteres"
  exit;
else
  echo "********************************"
fi

echo "test shell system variables.";

echo "The parameter numbers    \$#:$#";
echo "The script name        \$0:$0";
echo "The parsmeters:  (\$@ <=> \$1, \$2, \$3, .....)  : [$@] =($1, $2, .....)  "
echo "The system flag \$* represents each parameters with tab key: $*";
i=0
for pa in $@
do
  i=`expr $i + 1`
  echo -e "\t  $i parameter is :$pa "
done 

first=shift
second=shift

echo "first parameter =$first";
echo "second parameter=$second";



